import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";

let defaultConfigList = [
  { languageOptions: { globals: globals.browser } },
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  ...pluginVue.configs["flat/essential"],
];

console.log("eslint默认的所有配置：", defaultConfigList);

export default [
  ...defaultConfigList,
  // {
  //   rules: {
  //     "no-var": "warn",
  //   },
  // },
];
